﻿@model List<S4Store.Models.Chart.AdvIndex>
@{
    Layout = null;
    ViewBag.Title = "AdvIndex";
    
    
}
<div style=" margin-left:70px; overflow:hidden">
        <table style="width:100%">
            <tr>
                @foreach (var index in Model)
                {
                    var cls = "specialRed";
                    if (index.Type == S4Store.Models.Chart.AdvIndex.IndexType.Green)
                    {
                        cls = "specialGreen";
                    }
                    if (index.Size == S4Store.Models.Chart.AdvIndex.IndexSize.Big)
                    {
                        cls = "big" + cls;
                    }
                <td align="center" width="30">
                    <a class="@cls"
                    @if(!String.IsNullOrWhiteSpace(index.Url)){<text>href="@index.Url" target="navtab" tip="@index.Tip" </text>}
                     title="@index.Title">
                        <div class="value">@index.Value</div>
                        <div class="rt">@(index.Item1Name)：@index.Item1Value</div>
                        @if (!String.IsNullOrWhiteSpace(index.Item2Name))
                        {
                        <div class="rb">@(index.Item2Name)：@index.Item2Value</div>
                        }
                    </a>
                </td>
                }                
            </tr>
        </table>
        </div>

